//
//  B_QrCodeViewController.m
//  DreamOf
//
//  Created by 薛小刚 on 2018/8/19.
//  Copyright © 2018年 薛小刚. All rights reserved.
//

#import "B_QrCodeViewController.h"
#import "B_QrCodeMainView.h"

@interface B_QrCodeViewController ()

@property (nonatomic, strong) B_QrCodeMainView * mainView;

@end

@implementation B_QrCodeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setTitle:@"二维码"];
    [self.view addSubview:self.mainView];
    [self.mainView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view.mas_top).offset(-getNavHeight());
        make.left.equalTo(self.view.mas_left);
        make.right.equalTo(self.view.mas_right);
        make.bottom.equalTo(self.view.mas_bottom);
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (B_QrCodeMainView *)mainView {
    if (!_mainView) {
        _mainView = [B_QrCodeMainView initB_QrCodeMainView];
    }
    return _mainView;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
